package com.xlongwei.accounts.view;

import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;

import org.noear.snack.annotation.ONodeAttr;

import lombok.Builder;
import lombok.Data;

@Data
public class Daily {
    private @ONodeAttr(serialize = false) AtomicLong incomes = new AtomicLong(), outcomes = new AtomicLong();
    // daily=>sum_in sum_out records[ledger amount account member remark]
    private String day, sum_in, sum_out, balance;
    private List<Row> records = new LinkedList<>();

    @Data
    @Builder
    public static class Row {
        private Integer recordid, userid;
        @ONodeAttr(serialize = false)
        private Integer fen, accountid_in, accountid_out, ledgerid, memberid;
        private String ledger, amount, account, member, remark, account2, balance;
    }
}
